//
// Created by 原帅 on 2022/10/3.
//

#include "TestProc.h"
#include "unistd.h"
#include "TestData.h"
#include "RMemoryManger.h"
#include "RLog.h"
#include "Ree.h"

int TestProc::process() {
    RLogDbg("TEST------------------------------:%s",__func__ )

    Ree::Inst().processEvent();
//
//    RMemory<TestData> * testDataMemroy = RMemoryManger::Inst().getRMemoryWithKey<TestData>(111);
//    if (testDataMemroy->nextptr() >= 10) {
//        for (int i = 0;i<10;i++)
//        {
//            auto tdata = testDataMemroy->at(i);
//            testDataMemroy->remove(tdata);
//        }
//    }
//    RLogDbg("total max count = %d",testDataMemroy->getRMemoryInfo()->totalcount)
//    RLogDbg("current prt count = %d",testDataMemroy->getRMemoryInfo()->curnullptr)
//
//    RLogDbg("last data = %d",testDataMemroy->at(testDataMemroy->getRMemoryInfo()->curnullptr - 1).getTime1())
//    TestData testData;
//    testData.timestmap();
//    RLogDbg("made data = %d",testData.getTime1())
//    testDataMemroy->insert(testData);
//    RLogDbg("new data = %d",testDataMemroy->at(testDataMemroy->getRMemoryInfo()->curnullptr-1).getTime1())
//    sleep(3);

    return 0;
}
